package org.gbif.biogarage.action;

import java.util.ArrayList;
import java.util.List;

public class AutocompleteAction extends BaseAction {
	private String q; // search string
	private String callback="";
	private String json;
	
	public String execute(){
		this.currentMenu="search";
		json = "[{'name':'Abies alba L.','url':'http://www.google.com/search?q=abies+alba+L.','id':2132},{'name':'Abies alba Linné','url':'http://www.google.com/search?q=abies+alba+Linné','id':43252},{'name':'Abies alba Lin.','url':'http://www.google.com/search?q=abies+alba+Lin.','id':8594}]";
		return SUCCESS;
	}

	public String getQ() {
		return q;
	}

	public void setQ(String q) {
		this.q = q;
	}

	public String getCallback() {
		return callback;
	}

	public void setCallback(String callback) {
		this.callback = callback;
	}

	public String getJson() {
		return json;
	}
	
}
